package design.pattern.建造者模式;

/**
 * 导演者角色/指挥者角色
 */
public class Director {
    private MealBuilder builder;

    Director(MealBuilder builder){
        this.builder = builder;
    }

    public void setBuilder(MealBuilder builder) {
        this.builder = builder;
    }

    public void constuct(){
        builder.buildDrink();
        builder.buildFood();
    }
}
